
<h1>hello socket</h1>



{#<!DOCTYPE html>#}
{#<html lang="en">#}
{#<head>#}
{#    <meta charset="UTF-8">#}
{#    <title></title>#}
{#    <script type="text/javascript" src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>#}
{#    <script type="text/javascript" src="//cdn.bootcss.com/socket.io/1.5.1/socket.io.min.js"></script>#}
{#</head>#}
{#<body>#}
{#<h2 id="t"></h2>#}
{#<script type="text/javascript">#}
{#    $(document).ready(function() {#}
{#        namespace = '/test_conn';#}
{#        var socket = io.connect(location.protocol + '//' + document.domain + ':' + location.port + namespace);#}
{#        socket.on('server_response', function(res) {#}
{#            var t = res.data;#}
{#            $("#t").text(t);#}
{#        });#}
{##}
{#    });#}
{#</script>#}
{#</body>#}
{#</html>#}